package cn.huixh.blindbox.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;

/**
 * 用户登录类
 *
 * @author huixh
 * @version 1.0
 * @date 2022/5/8 16:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LoginDTO {
    /**
     * 用户邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;
    /**
     * 用户验证码
     */
    @Size(min = 4, max = 4, message = "验证码长度必须为4位")
    private String code;
}
